package org.tc.platform.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RestController;
import org.tc.platform.entity.Stores;
import org.tc.platform.mapper.StoresMapper;
import org.tc.platform.service.StoresService;

import java.util.List;

@Service
@RestController
public class StoresServiceImpl implements StoresService {

    @Autowired
    private StoresMapper storesMapper;

    @Override
    public List<Stores> selectname() {
        return storesMapper.selectname();
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return storesMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Stores record) {
        return storesMapper.insert(record);
    }

    @Override
    public Stores selectByPrimaryKey(Integer id) {
        return storesMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<Stores> selectAll() {
        return storesMapper.selectAll();
    }

    @Override
    public int updateByPrimaryKey(Stores record) {
        return storesMapper.updateByPrimaryKey(record);
    }

    @Override
    public int InsStores(String name, String region) {
        return storesMapper.InsStores(name, region);
    }

}
